<?php
$gaConfigFile = dirname(__FILE__)."/gaFile.txt";

if($p_data) {
    file_put_contents($gaConfigFile,unescape($p_data['gaEditor']));

}

if(file_exists($gaConfigFile)) {
    $gaConfig = file_get_contents($gaConfigFile);
    $smarty->assign("gaConfig", $gaConfig);
}

return $smarty->fetch('config.tpl');

?>